package com.itany.mapper;

import com.itany.pojo.Book;
import com.itany.pojo.Examine;
import com.itany.pojo.Press;
import com.itany.pojo.Supplier;
import com.itany.vo.ExamineVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Auther:ws@itany.com
 * Date:20-10-12 下午6:49
 * Version:1.0
 * Description:
 */

public interface BookMapper {
    /**
     * 查询书籍
     * @param bookName
     * @param ISBN
     * @param pressId
     * @param supplierId
     * @return
     */
    public List<Book> selectBookAll(@Param("bookName") String bookName, @Param("ISBN") String ISBN, @Param("pressId") Integer pressId, @Param("supplierId") Integer supplierId);

    /**
     * 查询指定书籍
     * @param ISBN
     * @return
     */
    public Book selectByISBN(String ISBN);

    /**
     * 添加书籍
     * @param book
     */
    public void insertBook(Book book);

    /**
     * 修改书籍
     * @param book
     */
    public void updateBook(Book book);

    /**
     * 查询供应商
     * @return
     */
    public List<Supplier> selectSupplier();


    public List<Press> selectPress();

    void updateFlag(Book book);

    List<Examine> findExamineSupplierAll(ExamineVo vo);
}
